package com.bsj.power.system.service;

import com.bsj.power.common.config.global.JsonResult;
import com.bsj.power.common.def.dto.schedule.TasksDTO;
import org.quartz.SchedulerException;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description ScheduledTasksService
 * @time 2024/8/26 19:34
 */
public interface ScheduledTasksService {

    /**
     * 设置工单定时任务
     *
     * @param second
     * @return com.bsj.power.common.config.global.JsonResult
     * @author ljx
     * @time 2024/8/26 19:36
     */
    JsonResult setJobTasks(Integer second) throws SchedulerException;

    /**
     * 获取工单定时任务时间间隔
     *
     * @return com.bsj.power.common.config.global.JsonResult<java.lang.Integer>
     * @author ljx
     * @time 2024/8/28 10:20
     */
    JsonResult<Integer> getJobTasksTimeInterval();
}
